//
//  LocalCollectionViewCell.swift
//  Trill
//
//  Created by 顾钱想 on 2019/11/10.
//  Copyright © 2019 顾钱想. All rights reserved.
//

import UIKit
import SDWebImage
class LocalCollectionViewCell: UICollectionViewCell {
    @IBOutlet private weak var btn: UIButton!
    @IBOutlet private weak var title: UILabel!
    @IBOutlet weak var img: FLAnimatedImageView!
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
    public var item: LocalItem? {
       didSet {
           guard let item = item else { return }
           if item.entry?.content?.trimmingCharacters(in: .whitespaces).isNotEmpty ?? true {
              title.text = item.entry?.content?.trimmingCharacters(in: .whitespaces)
            } else {
              title.text = "暂无标题"
            }

       }
    }
}
